package com.zzf.观察者模式3;

import com.zzf.观察者模式3.Customer;
import com.zzf.观察者模式3.Goods;
import com.zzf.观察者模式.Manager;
import com.zzf.观察者模式3.Productor;

public class Test {
    public static void main(String[] args) {
        Goods goods = new Goods(100);
        goods.addObserver(new Customer());
        goods.addObserver(new Productor());

        //goods.setPrice(102);
        goods.setPrice(93);
    }
}
